package com.sleepcamel.resteasyConfigurator.components.listeners;

import org.eclipse.swt.SWT;
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.events.KeyListener;

public abstract class DeleteKeyListener implements KeyListener {

	@Override
	public void keyPressed(KeyEvent paramKeyEvent) {
	}

	@Override
	public void keyReleased(KeyEvent paramKeyEvent) {
		if ( paramKeyEvent.keyCode == SWT.DEL ){
			doDelete();
		}
	}
	
	abstract public void doDelete();

	abstract public Object getCurrentSelection(); 
}
